package com.itshidu.jiaowu.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author XiaZengming123
 * @since 2019-07-08
 */
@Data
public class Teacher implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 老师的简介
     */
    @TableField("intro")
    private String intro;
    /**
     * 职务
     */
    @TableField("job")
    private String job;


    public void setIntro(String intro) {
        this.intro = intro;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Long getId() {
        return id;
    }

    public String getIntro() {
        return intro;
    }

    public String getJob() {
        return job;
    }

    @Override
    public String toString() {
        return "Teacher{" +
        ", id=" + id +
        ", intro=" + intro +
        ", job=" + job +
        "}";
    }
}
